<template>
  <a-config-provider :locale="locale">
    <a-style-provider hash-priority="high">
      <RouterView />
    </a-style-provider>
  </a-config-provider>
</template>

<script setup>
import { RouterView } from 'vue-router'

import zhCN from 'ant-design-vue/es/locale/zh_CN'
import dayjs from 'dayjs'
import 'dayjs/locale/zh-cn'

// ant转中文-------------------------------------------------------------------------------------------------------------------
dayjs.locale('zh-cn')
const locale = ref(zhCN)

</script>

<style>
/* 这段样式 接触缩放后element ui 样式影响问题 */
html,
body,
#app {
  width: 100%;
  height: 100%;
  position: relative;
  margin: 0;
}
</style>
